package com.kasinf.springcloud.service;

import com.kasinf.springcloud.entity.CommonResult;
import com.kasinf.springcloud.entity.Payment;
import org.springframework.stereotype.Component;

/**
 * @author lkhsh
 */
@Component
public class PaymentFallbackService implements PaymentService {
    @Override
    public CommonResult<Payment> paymentSQL(Long id) {
        return new CommonResult<>(444, "服务降级返回, PaymentFallbackService", new Payment(id, "error"));
    }
}
